package org.metasketch.simulator.tools.generic;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;

@XStreamAlias("requirement")
public class ResourceRequirement {

	@XStreamAsAttribute
	protected String alias;

	@XStreamAsAttribute
	protected String name;

	@XStreamAsAttribute
	@XStreamAlias("quantity")
	protected String quantityExpression;

	@XStreamAsAttribute
	@XStreamAlias("process-owned")
	protected boolean processOwned = false;

	public String getQuantityExpression() {
		return quantityExpression;
	}

	public void setQuantityExpression(String quantity) {
		this.quantityExpression = quantity;
	}

	public String getAlias() {
		return alias;
	}

	public void setAlias(String id) {
		this.alias = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public boolean isProcessOwned() {
		return processOwned;
	}

	public void setProcessOwned(boolean processOwned) {
		this.processOwned = processOwned;
	}

}
